﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsCertificateEdit.aspx.cs" Inherits="Myproject.BSM.PcWeb.PcChannel.Product.ContactEdit" %>

<div class="bjui-pageHeader"></div>
<div class="bjui-pageContent">
    <form runat="server" action="/bsm/ashx/PcChannel/GoodsCertificateEdit.ashx"  id="pc_Channel_GoodsCertificateEdit_form" data-toggle="validate" data-alertmsg="false">
        <input id="pc_Channel_GoodsCertificateEdit_GoodsCertificateId" runat="server" name="pc_Channel_GoodsCertificateEdit_GoodsCertificateId" type="hidden" value="0" />
        <input id="pc_Channel_GoodsCertificateEdit_GoodsID" runat="server" name="pc_Channel_GoodsCertificateEdit_GoodsID" type="hidden" value="" />
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
                <tr>
                    <td>
                        <label for="j_custom_sale" class="control-label x85">产品：</label>
                    </td>
                    <td>
                        <input runat="server" readonly type="text" name="pc_Channel_GoodsCertificateEdit_Goods" id="pc_Channel_GoodsCertificateEdit_Goods" class="form-control" size="20" data-title="选择产品" data-toggle="lookup" data-url="/bsm/pcweb/PcChannel/Product/selectGoods.aspx"   data-rule="required"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">资料：</label>
                    </td>
                    <td>
                        <div style="display: inline-block; vertical-align: middle;">
                            <div id="doc_pic_up" data-toggle="upload" data-uploader="/BSM/Ashx/PcChannel/GoodsCertificateUpload.ashx"
                                data-file-size-limit="1024000000"
                                data-file-type-exts="*.rar;*.zip;"
                                data-multi="true"
                                data-on-upload-success="pc_channel_GoodsCertificate_js_success"
                                data-icon="cloud-upload">
                            </div>
                            <input runat="server"  type="hidden" name="doc.pic" value="" id="doc_pic"/>
                        </div>
                        <span runat="server"  id="doc_span_pic"><%= ImgaHtml %></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="j_custom_sale" class="control-label x85">排序：</label>
                    </td>
                    <td>
                        <input type="text" runat="server" runat="server" data-toggle="spinner" data-step="1" value="1" size="10" id="pc_Channel_GoodsCertificateEdit_rank" name="pc_Channel_GoodsCertificateEdit_rank" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" maxlength="2"  data-rule="排序:required;number">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-green" data-icon="save">提交</button></li>
    </ul>
</div>
<script type="text/javascript">
    function pc_channel_GoodsCertificate_js_success(file, data) {
        var json = $.parseJSON(data)
        if (json[BJUI.keys.statusCode] == BJUI.statusCode.ok) {
            $('#doc_pic').val(json.fileName);
            $('#doc_span_pic').html('<br>已上传资料：' + json.fileName);
        }
    }
</script>
